package operatorlearn;

import operatorlearn.MainTest3.MyEnum;

public class TestDataObj {
	private int m = 100;
	private int n;
	private enum MyEnun{hello,welcome,thankyou}
	public TestDataObj(int x,int y){
		System.out.println("before the construction function the value of it's private member m is "+m);
		System.out.println("before the construction function the value of it's private member n is "+n);
		m=x;
		n=y;
	}
	public TestDataObj getThis(){
		System.out.println(this);
		return this;
	}
	public int getM() {
		return m;
	}
	public void setM(int m) {
		this.m = m;
	}
	public int getN() {
		return n;
	}
	public void setN(int n) {
		this.n = n;
	}
	public void getEnum(){
		try{
			MyEnum m = MyEnum.hello;
		System.out.println("the value of the enum m is "+m);
		for(MyEnum s : MyEnum.values()){
			System.out.println("the values of the enum type is "+s);
		}
		}catch(Exception e){
			e.printStackTrace();
		}
	}

}
